﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AutorizacionViajesMVC.Models.Seguro>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	PokaYoke
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: TempData["error"] %></h2>
    <h2>Creacion de Seguro</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CodigoS)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CodigoS)%>
                <%: Html.ValidationMessageFor(model => model.CodigoS)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CodAU)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CodAU)%>
                <%: Html.ValidationMessageFor(model => model.CodAU)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Apro)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Apro)%>
                <%: Html.ValidationMessageFor(model => model.Apro)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.OB_Ge)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.OB_Ge)%>
                <%: Html.ValidationMessageFor(model => model.OB_Ge)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.VB_Teso)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.VB_Teso)%>
                <%: Html.ValidationMessageFor(model => model.VB_Teso)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.OB_Teso)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.OB_Teso)%>
                <%: Html.ValidationMessageFor(model => model.OB_Teso)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.VB_Seg)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.VB_Seg)%>
                <%: Html.ValidationMessageFor(model => model.VB_Seg)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.OB_Seg)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.OB_Seg)%>
                <%: Html.ValidationMessageFor(model => model.OB_Seg)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.EstaSol)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.EstaSol)%>
                <%: Html.ValidationMessageFor(model => model.EstaSol)%>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la Lista", "Index") %>
    </div>

</asp:Content>

